@extends('layouts.default')  
@section('content')
<div class="box primary">
    <header>
        <div class="icons">
            <i class="fa fa-edit"></i>
        </div>
        <h5>{{Lang::get('rentals.new_rental')}}</h5>
        <div class="toolbar">
            <nav style="padding: 8px;">
                <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                    <i class="fa fa-minus"></i>
                </a> 
                <a href="javascript:;" class="btn btn-default btn-xs full-box">
                    <i class="fa fa-expand"></i>
                </a> 
                <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                    <i class="fa fa-times"></i>
                </a> 
            </nav>
        </div>
    </header>
    <div id="div-1" class="body">
        {{ Form::open(array('url' => 'free_cars', 'class'=>'form-horizontal','id'=>'form-reservation')) }} 
        <div class="form-group">
            {{ Form::label('startdate', Lang::get('reservation.startdate'), array(
                            'class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">
                {{ Helpers\Helper::date('startdate', '' , array(
                                'class' => 'form-control',
                            )) 
                }}
            </div>
            <div class="col-lg-2">
                {{ Helpers\Helper::time('starttime', Input::old('starttime') , array(
                                'class' => 'form-control',
                            )) 
                }}
            </div>
        </div>
        <div class="form-group">
            {{ Form::label('enddate', Lang::get('reservation.enddate'), array(
                            'class'=>'control-label col-lg-4')) }}
            <div class="col-lg-6">               
                {{ Helpers\Helper::date('enddate', '' , array(
                                'class' => 'form-control')) 
                }}
            </div>
            <div class="col-lg-2">
                {{ Helpers\Helper::time('endtime', Input::old('endtime'), array(
                                'class' => 'form-control',
                            )) 
                }}
            </div>
        </div> 
        <div class="form-group">
            {{ Form::label('classes', Lang::get('reservation.classes'), array('class'=>'control-label col-lg-4')) }}
            <div class="col-lg-8">
                {{ Form::select('classes',$classes, Input::old('classes'), array(
                                'placeholder' =>Lang::get('reservation.classes'),
                                'class' => 'form-control',
                                'id'=>'classes')) 
                }}<br/><div id="validation-div"></div>
            </div>
        </div> 
        {{ Form::submit(Lang::get('messages.free_cars_btn'), array('class' => 'btn btn-info btn-line', 'id'=>'free-cars')) }}
        <input type="button" id = "res-made" value="{{ Lang::get('messages.reservation_btn')}}" class="btn btn-warning btn-line">
        <input type="button" value="{{ Lang::get('messages.cancel_btn')}}" class="btn btn-danger btn-line" 
               onClick="history.go(-1);
                       return true;"><br/><br/>
                    <div id="table-div">
                           
                    </div>
        {{ Form::close() }}
    </div>
</div>
@stop
